package com.itheima.作业.提取;

/**
 * 需求描述：** 请根据下面给的字符串，截出我们想要的数据，且将需要转换的数据进行转型，最后查出对象的数据，打印在控制台。 "
 * // 准备学生数据 Student s = new Student("艾大海", "A230602820", "男", 25, "大专以下", "永州职业技术学员");Student s2 = new Student
 * ("曹少坤", "A230601537", "男", 23, "本科及以上", "");Student s3 = new Student("陈橙", "A230600767",
 * "男", 21, "大专 ", "湖南软件职业学员");Student s4 = new Student("陈福", "A230601913",
 * "男", 21, "大专", "湖南机电职业技术学员");Student s5 = new Student("陈美鹃", "A230600523",
 * "男", 25, "本科及以上", "");Student s6 = new Student("陈鑫", "A230601837", "男", 21, "大专以下",
 * "长查民政职业技术学员");Student s7 = new Student("陈泳名", "A230601852", "男", 23, "大专",
 * "湖南信息职业技术学员");Student s8 = new Student("邓灿宇", "A230601109", "男", 22, "大专", "");
 * Student s9 = new Student("邓明", "A230601830", "男", 21, "大专以下", "");
 * Student s10 = new Student("付云杰", "A230603250", "男", 22, "大专", "湘西名族职业技术学员");
 * Student s11 = new Student("胡振宇", "A230601217", "男", 25, "本科及以上", "湖南涉外经济学员");
 * Student s12 = new Student("黄永麒", "A210302017", "男", 23, "本科及以上", "湖南涉外经济学员");
 * // 创建集合，添加学生数据ArrayList<Student> list = new ArrayList<>();list.add(s);list.add(s2);
 * list.add(s3);list.add(s4);list.add(s5);list.add(s6);list.add(s7);list.add(s8);list.add(s9);
 * list.add(s10);list.add(s11);list.add(s12);​//
 * 前端请求数据String url = "https://tlias.itcast.cn/tz/classStudentList?name=邓&age=21";//
 * 从以上的字符串中，获取"陈"和22，然后从集合中把满足条件的学生信息在控制台打印出来！！！
 * //找到姓名为邓 和年龄为21的所有学生//注意获取的22为String类型需要转换成int类型才能查找
 * (自己想办法解决) // 【此处完成代码】！！！       ​
 */
public class Student {
    private String name;
    private String id;
    private String sex;
    private int age;
    private String education;
    private String school;

    public Student(String name, String id, String sex, int age, String education, String school) {
        this.name = name;
        this.id = id;
        this.sex = sex;
        this.age = age;
        this.education = education;
        this.school = school;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
}
